package com.order.pojo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author llr
 * @since 2025-08-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(value = "product_info")
@ApiModel(value="ProductInfo", description="餐饮实体")
public class ProductInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.INPUT)
    private String productId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "单价")
    private BigDecimal productPrice;

    @ApiModelProperty(value = "库存")
    private Integer productStock;

    public ProductInfo(String productId, int del) {
        this.productId = productId;
        this.del = del;
    }

    @ApiModelProperty(value = "描述")
    private String productDescription;

    @ApiModelProperty(value = "小图")
    private String productIcon;

    @ApiModelProperty(value = "商品状态,0正常1下架")
    private Integer productStatus;
@TableField(value = "category_type")
    @ApiModelProperty(value = "类目编号")
    private Integer categoryType;
 @TableField(exist = false)
 @ApiModelProperty(value = "类目名称")
 private  String categoryName;
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    private String updateTime;
    @ApiModelProperty(value = "是否删除")
    private int del;

}
